package com.IO.IODemo02;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class A01 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("untitled\\aaa.txt");
        FileOutputStream fos = new FileOutputStream("untitled\\bbb.txt");
        
        int i;
        while ((i = fis.read()) != -1){
            fos.write(i);
        }
        fos.close();
        fis.close();
    }
}
